<?php 
class Tactiongrouprelation  extends AppModel {


	var $name = 'Tactiongrouprelation';
	var $useTable = 'taction_group_relation';
	var $primaryKey = "id";
	/**
	 * get actions for group
	 *
	 * @param int $gid groupid
	 * @return unknown
	 */
	function getGroupActions($gid=NULL)
	{
		$result =array();
		if(NULL == $gid)
		{
			return $result;
		}
		$rs = $this->findAll("f_gid='$gid'");
		if(0 == count($rs))
		{
			return $result;
		}
		foreach ($rs as $value) {
			$result[] = $value['Tactiongrouprelation']['f_aid'];
		}
		return $result;
	}

}
?>
